/**
 * @param {number} tomatoSlices
 * @param {number} cheeseSlices
 * @return {number[]}
 */
var numOfBurgers = function (tomatoSlices, cheeseSlices) {
  let bigNums = 0, smallNums = 0
  bigNums = tomatoSlices / 2 - c
  smallNums = 2 * cheeseSlices - tomatoSlices / 2
  if (bigNums >= 0 && smallNums >= 0) {
    if (Math.floor(bigNums) == bigNums && Math.floor(smallNums) == smallNums) {
      return [bigNums, smallNums]
    }
  }
  return []
}